<div id="print_area">
	<table width="95%" border="0" cellspacing="2" cellpadding="1" style="line-height: 25px;">
	  <tr>
	    <td colspan="4" class="text_size19">Pristine Solutions (Pvt) Ltd.</td>
	    <td width="23%" align="right"><div style="padding: 40px 0 0 0;" class="edit-icoset"><a href="javascript: void(0);" onClick="window.print();"><img src="/images/icons/print.gif" />Print Page</a></div></td>
	  </tr>
	  
	  <tr>
	    <td colspan="5" class="text_size11">No: 130/1, Dehiwala Road, <br /> Borellasgamuwa, Sri Lanka.<br />
				Tel : +94-11-4651175<br />
				Fax : +94-11-2516820<br />
				E-mail: cs@pristineworldwide.com<br />
				Web: www.pristineworldwide.com</td>
	  </tr>
	  <tr>
	    <td colspan="5">&nbsp;</td>
	  </tr>
	  <tr>
	    <td colspan="5" align="center" valign="top" class="text_size19">Visit Record </td>
	  </tr>
	  <tr>
	    <td width="18%">&nbsp;</td>
	    <td width="35%">&nbsp;</td>
	    <td width="5%">&nbsp;</td>
	    <td width="19%">&nbsp;</td>
	    <td>&nbsp;</td>
	  </tr>
	  <tr>
	    <td class="text_size11_normal" style="border-top: 1px solid #999999;border-left: 1px solid #999999;">Customer</td>
	    <td class="text_size11_normal" style="border-top: 1px solid #999999;border-right: 1px solid #999999;"><?php echo $this->customer['customer_name']; ?></td>
	    <td>&nbsp;</td>
	    <td class="text_size11_normal" style="border-top: 1px solid #999999;border-left: 1px solid #999999;">Record Number </td>
	    <td class="text_size11_normal" style="border-top: 1px solid #999999;border-left: 1px solid #999999;border-bottom: 1px solid #999999;border-right: 1px solid #999999;"><?php echo $this->event_arr['serial_no']; ?></td>
	  </tr>
	  <tr>
	    <td style="border-bottom: 1px solid #999999;border-left: 1px solid #999999;">&nbsp;</td>
	    <td style="border-bottom: 1px solid #999999;border-right: 1px solid #999999;">&nbsp;</td>
	    <td>&nbsp;</td>
	    <td class="text_size11_normal" style="border-top: 1px solid #999999;border-left: 1px solid #999999;border-bottom: 1px solid #999999;">Date</td>
	    <td class="text_size11_normal" style="border-top: 1px solid #999999;border-left: 1px solid #999999;border-bottom: 1px solid #999999;border-right: 1px solid #999999;"><?php echo $this->event_arr['date']; ?></td>
	  </tr>
	  <tr>
	    <td>&nbsp;</td>
	    <td>&nbsp;</td>
	    <td>&nbsp;</td>
	    <td>&nbsp;</td>
	    <td>&nbsp;</td>
	  </tr>
	  <tr>
	    <td class="text_size11_normal" align="left" valign="middle">Time Chargeble </td>
	    <td class="text_size11_normal" align="left" valign="middle"><b><?php echo($this->event_arr['time_charge'] == 1)?"Yes":"No"; ?></b></td>
	    <td>&nbsp;</td>
	    <td>&nbsp;</td>
	    <td>&nbsp;</td>
	  </tr>
	  <tr>
	    <td class="text_size11_normal" align="left" valign="middle">Transport Chargeble </td>
	    <td class="text_size11_normal" align="left" valign="middle"><b><?php echo($this->event_arr['transport'] == 1)?"Yes":"No"; ?></b></td>
	    <td>&nbsp;</td>
	    <td>&nbsp;</td>
	    <td>&nbsp;</td>
	  </tr>
	  <tr>
	    <td class="text_size11_normal" align="left" valign="middle">Service Agreement </td>
	    <td class="text_size11_normal" align="left" valign="middle"><b><?php echo($this->event_arr['service_agreement'] == 1)?"Yes":"No"; ?></b></td>
	    <td>&nbsp;</td>
	    <td>&nbsp;</td>
	    <td>&nbsp;</td>
	  </tr>
	  <tr>
	    <td>&nbsp;</td>
	    <td>&nbsp;</td>
	    <td>&nbsp;</td>
	    <td>&nbsp;</td>
	    <td>&nbsp;</td>
	  </tr>
	  <tr>
	    <td colspan="5"><table width="100%" border="1" cellspacing="1" cellpadding="1">
	      <tr>
	        <td width="55%" align="center" valign="middle"><strong>Activity Details </strong></td>
	        <td width="15%" align="center" valign="middle"><strong>Start Time </strong></td>
	        <td width="15%" align="center" valign="middle"><strong>End Time </strong></td>
	        <td width="15%" align="center" valign="middle"><strong>Total Time </strong></td>
	      </tr>
	      <tr>
	        <td class="text_size11_normal" align="left" valign="middle"><?php echo $this->event_arr['activity']; ?></td>
	        <td class="text_size11_normal" align="center" valign="middle"><?php echo $this->event_arr['start_time']; ?></td>
	        <td class="text_size11_normal" align="center" valign="middle"><?php echo $this->event_arr['end_time']; ?></td>
	        <td class="text_size11_normal" align="center" valign="middle">
	        	<?php
	    			$hours = $this->time_diff['hours'];
	    			$minutes = $this->time_diff['minutes'];    			    			
	    			if($hours != 0 && $minutes != 0)
	    			{
	    				if($hours == 1) {
	    					$tot_hours = $hours . "hour " . $minutes . "mins";
	    				} else {
	    					$tot_hours = $hours . "hours " . $minutes . "mins";
	    				}
	    				
	    			} else if($hours == 0) {
	    				$tot_hours = $minutes . "mins";
	    			} else if ($minutes == 0) {
						if($hours == 1) {
							$tot_hours = $hours . "hour";
						} else {
							$tot_hours = $hours . "hours";
						}
	    			}
	    			echo $tot_hours;
	        	?>
	        </td>
	      </tr>
	      <tr>
	        <td>&nbsp;</td>
	        <td>&nbsp;</td>
	        <td>&nbsp;</td>
	        <td>&nbsp;</td>        
	      </tr>
	    </table></td>
	  </tr>
	  <tr>
	    <td>&nbsp;</td>
	    <td>&nbsp;</td>
	    <td>&nbsp;</td>
	    <td>&nbsp;</td>
	    <td>&nbsp;</td>
	  </tr>
	  <tr>
	    <td colspan="5" class="text_size15">Customer Notes: </td>
	  </tr>
	  <tr>
	    <td height="105" colspan="5" align="center" valign="middle" style="border: 1px solid #999999;">&nbsp;</td>
	  </tr>
	  <tr>
	    <td>&nbsp;</td>
	    <td>&nbsp;</td>
	    <td>&nbsp;</td>
	    <td>&nbsp;</td>
	    <td>&nbsp;</td>
	  </tr>
	  <tr>
	    <td align="left" valign="middle" class="text_size15">For Pristine </td>
	    <td align="left" valign="middle">&nbsp;</td>
	    <td colspan="2" align="left" valign="middle" class="text_size15" style="padding: 0 0 0 15px;">For Customer </td>
	    <td align="left" valign="middle">&nbsp;</td>
	  </tr>
	  <tr style="line-height:10px;">
	    <td>&nbsp;</td>
	    <td>&nbsp;</td>
	    <td>&nbsp;</td>
	    <td>&nbsp;</td>
	    <td>&nbsp;</td>
	  </tr>
	  
	  <tr>
	    <td colspan="5" align="left" valign="middle">
			<table width="100%" border="0" cellspacing="1" cellpadding="1" style="line-height:30px;">
				<tr>
					<td class="text_size11_normal" width="15%" align="left" valign="bottom">Name</td>
					<td class="text_size11_normal" width="30%" align="left" valign="middle">...........................................................</td>
					<td class="text_size11_normal" width="5%" align="left" valign="bottom">&nbsp;</td>
					<td class="text_size11_normal" width="15%" align="left" valign="bottom">Name</td>
					<td class="text_size11_normal" width="30%" align="left" valign="middle">...........................................................</td>
				</tr>
				<tr>
					<td class="text_size11_normal" align="left" valign="bottom">Signature</td>
					<td class="text_size11_normal" align="left" valign="middle">...........................................................</td>
					<td class="text_size11_normal" align="left" valign="bottom">&nbsp;</td>
					<td class="text_size11_normal" align="left" valign="bottom">Signature</td>
					<td class="text_size11_normal" align="left" valign="middle">...........................................................</td>
				</tr>
				<tr>
					<td class="text_size11_normal" align="left" valign="bottom">Date</td>
					<td class="text_size11_normal" align="left" valign="middle">...........................................................</td>
					<td class="text_size11_normal" align="left" valign="bottom">&nbsp;</td>
					<td class="text_size11_normal" align="left" valign="bottom">Date</td>
					<td class="text_size11_normal" align="left" valign="middle">...........................................................</td>
				</tr>
		  </table>	</td>
	  </tr>
	  <tr>
	    <td height="35" align="left" valign="middle">&nbsp;</td>
	    <td>&nbsp;</td>
	    <td>&nbsp;</td>
	    <td align="left" valign="middle">&nbsp;</td>
	    <td>&nbsp;</td>
	  </tr>
	</table>
</div>